package com.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.entity.DecisionNodeFact;

import java.util.Map;

/**
 * @Classname DecisionLoadRuleService
 * @Description 动态规则生成
 * @Date 2023/11/15 19:35
 * @Created by Leo825
 */
public interface IDecisionLoadRuleService extends IService<DecisionNodeFact> {

    /**
     * 生成规则字符串
     *
     * @param decisionId
     * @return
     */
    String buildRuleByDecisionId(Long decisionId);

    /**
     * 执行动态规则
     *
     * @param drlStr
     * @param packag
     * @param drlFineName
     * @param params
     * @return
     */
    Map<String, Object> executeDrlStr(String drlStr, String packag, String drlFineName, Map<String, Object> params);
}
